import java.time.LocalDate;
import java.time.Period;

public class DateDemo {

    public static void main(String[] args) {


        LocalDate of1 = LocalDate.of(2020, 12, 1);
        LocalDate of2 = LocalDate.of(2021, 12, 12);

        Period between = Period.between(of1, of2);
        System.out.println(between.getChronology());
        System.out.println(between.getUnits());

    }

}
